var express = require('express');
var axios = require('axios')
var router = express.Router();

/* GET home page. */
router.get('/list', async function(req, res, next) {
  const result =  await axios.post(
    "https://api.inews.qq.com/newsqa/v1/query/inner/publish/modules/list?modules=localCityNCOVDataList,diseaseh5Shelf"
  );
  // console.log(result);
  res.json({...result.data.data})
});

module.exports = router;
